package com.itcase.homework03.work03;

/*
2.定义一个汽车类，包含属性品牌(brand)以及方法run(),在run方法中打印某个品牌的
车正在往某个方向行驶
*/
public class Car {
    private String brand;

    public Car() {
    }

    public Car(String brand) {
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public void run(String orientation){
        System.out.println(brand+"汽车在向"+orientation+"转弯！");
    }
}
